part of 'shop_cart_bloc.dart';

@immutable
abstract class ShopCartEvent extends Equatable {}

class ShopCartFetchData extends ShopCartEvent {
  final CompletableAction action;

  ShopCartFetchData({this.action});

  @override
  List<Object> get props => [action];
}

// 选中
class ShopCartEventOnCheck extends ShopCartEvent {
  final String id;
  final int index;
  final bool check;

  ShopCartEventOnCheck({this.id, this.index, this.check});

  @override
  List<Object> get props => [id, index, check];
}

// 报名
class ShopCartEventOnApply extends ShopCartEvent {
  final String id;
  final int index;
  final bool check;

  ShopCartEventOnApply({this.id, this.index, this.check});

  @override
  List<Object> get props => [id, index, check];
}

// 提交订单
class ShopCartEventOnSubmit extends ShopCartEvent {
  final String id;
  final int index;
  final bool check;

  ShopCartEventOnSubmit({this.id, this.index, this.check});

  @override
  List<Object> get props => [id, index, check];
}
